Skip to content

MNT: several updates to pyproject.toml, ignore uv.lock#927

Merged
snowman2 merged 1 commit into
corteva:masterfrom
mwtoews:pyproject-toml-fixes
Jun 23, 2026
Merged

MNT: several updates to pyproject.toml, ignore uv.lock#927
snowman2 merged 1 commit into
corteva:masterfrom
mwtoews:pyproject-toml-fixes

Conversation

@mwtoews

@mwtoews mwtoews commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Apologies for cobbling a few fixes into one PR.

These changes are related to PEP 639, and clear up deprecation warnings when building:

  • Change [project.license] from a table to a SPDX license expression
  • Add [project.license-files]
  • Remove the license from the classifiers
  • Correction [options.package_data] -> [tool.setuptools.package-data]

Other changes:

  • Remove [tool.black], because target_version was incorrect (should be target-version), but more importantly this was tracking an old version of Python, and by default, Black will infer target versions from the project metadata (docs)
  • Ignore uv.lock files, which are created with (e.g.) uv sync --all-extras

@snowman2 snowman2 added the bug Something isn't working label Jun 23, 2026
@snowman2 snowman2 merged commit eb61ade into corteva:master Jun 23, 2026
11 of 22 checks passed
@snowman2

Copy link
Copy Markdown
Member

Thanks @mwtoews 👍

@mwtoews mwtoews deleted the pyproject-toml-fixes branch June 23, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants